package net.tbao.product.feign;


import net.tbao.common.to.SkuReductionTo;
import net.tbao.common.to.SpuBoundTo;
import net.tbao.common.utils.R;
import net.tbao.product.feign.fallback.ProtectFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "taobao-coupon",fallback = ProtectFeignServiceFallBack.class)
public interface CouponFeignService {



    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);


    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
